//
//  TGMultilineTextField.h
//  TongGuanLease
//
//  Created by 张奇 on 2022/6/19.
//

#import <UIKit/UIKit.h>
@class TGMultilineTextField;
NS_ASSUME_NONNULL_BEGIN

@protocol TGMultilineTextFieldDelegate <NSObject>

- (void)multilineTextField:(TGMultilineTextField *)multilineTextField newHeightAfterTextChanged:(CGFloat)height;

@end


@interface TGMultilineTextField : UIView

@property(nonatomic, strong, nullable) IBInspectable NSString *placeholder;

@property (nonatomic, copy) NSString *text;

@property (nonatomic, assign) NSInteger maximumTextLength;

@property (nonatomic, strong) UIColor *textColor;

@property (nonatomic, assign) id<TGMultilineTextFieldDelegate> delegate;

@property (strong, nonatomic) QMUITextView *textView;

@end

NS_ASSUME_NONNULL_END
